import java.util.Scanner;
public class forwhile2{
    void print(int n)
        {if((n%2)!=0){
        for(int a =1;a<=n/2+1;a++){
        for(int b=1;b<=n/2-a+1;b++){
            System.out.print(" ");
        }
        System.err.print("*");
        if(a!=1){
            for(int b=1;b<=2*a-3;b++){
                System.out.print(" ");
            }
            System.out.print("*");
        }
        System.out.println();
        
        }
        for(int a=n/2+2;a<=n;a++){
            for(int b=1;b<=n/2-(n+2-a-1)+1;b++){
                System.out.print(" ");
            }
            System.err.print("*");
            if((n+2-a-1)!=1){
                for(int b=1;b<=2*(n+2-a-1)-3;b++){
                    System.out.print(" ");
                }
                System.out.print("*");
            }
            System.out.println();
        }
    }else{
        System.out.println("输入的数非奇数");
    }
    }
    public static void main(String[] args) {
        forwhile2 diamond = new forwhile2();
        Scanner sc =new Scanner(System.in);
        int n=sc.nextInt();
        diamond.print(n);
    }
}

